package csu.web.mypetstore.domain;

import java.io.Serializable;
//商品的大类 鸟,,狗，，猫，，鱼等  POJO
/*
实现序列化：
1.序列化：把对象的状态信息转化为可存储或传输的形式过程
2.UID：Java的序列化机制是通过判断类的 serialVersionUID 来验证版本一致性的。
 */
public class Category implements Serializable {
    private static final long serialVersionUID = 3992469837058393712L;

    private String categoryId;
    private String name;
    private String description;

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String toString() {
        return getCategoryId();
    }

}
